Learning Pentaho CTools by 2016

Learning Pentaho CTools by 2016

Author:2016
Language: eng
Format: epub
Publisher: Packt Publishing


1

Option One

2

Option Two

3

Option Three

The code to apply such options would be as follows:

function(){ this.valuesArray = [ ["1","Option One"], ["2","Option Two"], ["3","Option Three"] ]; }

When setting false on the Value as ID option, you are telling the component that you want to display Option One, Option Two, and Option Three in the dropdown list, but when selecting a choice, you will get the corresponding ID and not the value itself. If you choose Option Two, the parameter that stores the value is written with the ID that for this case, would be 2. This is because you just said that you don't want to have the value as the ID.

When setting the property to true, you will still see in the dropdown the options: Option One, Option Two, and Option Three. If you choose Option Two, the parameter will be written with the value and not the ID. If that's the case, the parameter would have Option Two. This is because you said in the property that you want to use the value as the ID. When applying a filter and working with an MDX query, you can set the ID as the unique name of the member. When selecting one option, the ID will be written to the parameters that can be used in a query. This can be achieved by setting the values array or using a query that returns the following result:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.